package com.bnivideo.ui

import org.codehaus.jackson.map.ObjectMapper
import org.codehaus.groovy.ant.Groovy
import org.apache.commons.io.IOUtils
import java.nio.charset.Charset
import com.sun.xml.internal.fastinfoset.algorithm.HexadecimalEncodingAlgorithm
import sun.misc.HexDumpEncoder
import org.apache.commons.codec.binary.Hex

/**
 * Created by IntelliJ IDEA.
 * User: jiming
 * Date: 11-1-24
 * Time: 下午12:03
 * To change this template use File | Settings | File Templates.
 */

def ob = new ObjectMapper()

def user1 = [
    name:'jiming'
    , age: 100
    , address: 'aaaaaaaaa'
]

println user1


println ob.writeValueAsString(user1)



def bytes = [(byte)1,(byte)2] as byte[];

def strings = ['jiming','liu', new Date(), 5] as String[];

def objects = ['jiming',1] as Object[];

println strings
println objects





